import 'package:json_annotation/json_annotation.dart';

part 'permission.g.dart';

@JsonSerializable()
class Permission {
  Permission();

  late String id;
  String? parentId;
  String? code;
  late String name;
  String? path;
  String? source;
  num? sort;
  String? remark;
  List<Permission>? children;
  String? imageUrl;
  
  factory Permission.fromJson(Map<String,dynamic> json) => _$PermissionFromJson(json);
  Map<String, dynamic> toJson() => _$PermissionToJson(this);
}
